using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using UnityEngine.EventSystems;

public class LoginPanel : BasePanel
{
    public void InitData()
    {
        Debug.Log("初始化信息!");
    }
    private void Start()
    {

       UIManager.AddCunstomEventListener(GetControl<Button>("btnExit"),EventTriggerType.PointerEnter,(data)=> 
        {
            Debug.Log("我进来了！");
        });
        UIManager.AddCunstomEventListener(GetControl<Button>("btnExit"), EventTriggerType.PointerExit, (data) =>
        {
            Debug.Log("我出来了！");
        });
    }
    protected override void OnClick(string btname)
    {
        switch (btname)
        {
            case "btnLogin":
                Debug.Log("登录按钮被点击！");
                break;
            case "btnExit":
                Debug.Log("退出按钮被点击！");
                break;
            default:
                break;
        }
    }
    public override void ShowMe()
    {
        Debug.Log("我显示出来了！");
    }
    public override void HideMe()
    {
        Debug.Log("我隐藏了！");
    }
}
